<template>
  <div >
    <LazyLoadTab v-model="activeName" :tabMenus="menus"></LazyLoadTab>
  </div>
</template>

<script>
import { getlistAllData} from "@/api/common/org/dealerCompany";
import { authority } from '@/utils/authMixin';
import { dictionary } from '@/utils/dictMixin';
export default {
  name: 'basePlateFollow',
  mixins: [authority, dictionary],
  data() {
    return {
      activeName: '待跟进',
      menus: [
        {
          title: '待跟进',
          path: 'potenCus/basePlate/basePlateFollow/followNo',
          params: {
            searchData:{}
          }
          /* params: {
            "rowData":this.formData,
            "listAllData":this.listAllData,
            "isOk":this.isOk
          } */
        },
        {
          title: '已跟进',
          path: 'potenCus/basePlate/basePlateFollow/followUp',
          /* params: {
            "rowData":this.formData,
            "listAllData":this.listAllData,
            "isOk":this.isOk
          } */
        },
        {
          title: '全部',
          path: 'potenCus/basePlate/basePlateFollow/followAll'
        },
      ],

    };
  },
  async mounted () {

    switch (this.$route.query.active) {
      case 1:
        this.menus[0].params.searchData = {
          planActionDate: this.$route.query.time,
          planActionDateEnd: this.$route.query.time,
          isComplete: 10041002
        }
        this.activeName = '待跟进'
        break;
      case 2:
        this.menus[0].params.searchData = {
          planActionDate: this.$route.query.time,
          planActionDateEnd: this.$route.query.time,
          isComplete: 10041002
        }
        this.activeName = '待跟进'
        break;
      case 3:
        this.menus[0].params.searchData = {
          planActionDate: this.$route.query.time,
          planActionDateEnd: this.$route.query.time,
          isComplete: 10041002
        }
        this.activeName = '待跟进'
        break;
      case 4:
        this.menus[0].params.searchData = {
          planActionDate: this.$route.query.time,
          planActionDateEnd: this.$route.query.time,
          isComplete: 10041002
        }
        this.activeName = '待跟进'
        break;
      default:
        break;
    }
  },
  methods: {

  },
};
</script>

<style scoped>
.wrapper {
  height: calc(100vh - 110px);
}
</style>
